home *** CD-ROM | disk | FTP | other *** search
/ Zoom 2 / Zoom - Release 2 (1996)(Active Software)[!].iso / graphics / misc / opticon18 / makefile < prev    next >
Makefile  |  1978-06-28  |  1KB  |  59 lines

  1. # $VER: Makefile for OptIcon and Icon2C as of Thu Feb  3 03:10:12 1994
  2. #
  3. # (c)Copyright 1994 by Tobias Ferber
  4. #
  5. # This file is part of the Icon2C and OptIcon distribution.
  6. #
  7. # Icon2C and OptIcon are free software; you can redistribute them and/or
  8. # modify them under the terms of the GNU General Public License as published
  9. # by the Free Software Foundation; either version 1 of the License,
  10. # or (at your option) any later version.
  11. #
  12. # Icon2C and Opticon are distributed in the hope that they will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with these programs; see the file COPYING.  If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. CC=gccv
  22. CFLAGS=-ansi -Wall -O2 -I/include
  23. LFLAGS=-L/usr/os-lib -lamiga
  24.  
  25. .PHONY: all
  26.  
  27. all: icon2c opticon
  28.  
  29. # --- opticon
  30.  
  31. opticon: opticon.o memfn.o
  32.     $(CC) $(LFLAGS) -o $@ $^
  33.  
  34. opticon.o: opticon.c
  35.     $(CC) $(CFLAGS) -c -o $@ $<
  36.  
  37. memfn.o: memfn.c
  38.     $(CC) $(CFLAGS) -c -o $@ $<
  39.  
  40. # --- icon2c
  41.  
  42. icon2c: icon2c.c
  43.     $(CC) $(CFLAGS) -o $@ $<
  44.  
  45. # --- docs
  46.  
  47. .PHONY: docs
  48.  
  49. docs:
  50.     autodoc -C opticon.c > opticon.doc
  51.     autodoc -C icon2c.c > icon2c.doc
  52.  
  53. # ---
  54.  
  55. .PHONY: clean
  56.  
  57. clean:
  58.     rm opticon opticon.o memfn.o icon2c
  59.